﻿@{
    Layout = null;
}
@using MvcApplication2.Models
@model UserDetails
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Login</title>
    <script src="~/Scripts/jquery-1.8.2.js"></script>
    <script src="~/Scripts/jquery.validate.js"></script>
   <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
    <link rel="stylesheet" href="~/Content/bootstrap.min.css" />
   <link rel="stylesheet" href="~/Content/center.css" />
</head>
<body >
    <div class="index-main" >
    <div  class="index-main-body">
        @using (Html.BeginForm("DoLogin", "Authentication", FormMethod.Post))
        {
            <div class="form-group" >
            @Html.LabelFor(x => x.UserName, "用户名", new { @class = "control-label"})
            @Html.TextBoxFor(c => c.UserName, new { @class = "form-control",@placeholder="用户名" })  @Html.ValidationMessageFor(x => x.UserName)
                </div>
          <div class="form-group" >
                @Html.LabelFor(x => x.PassWord, "密码",new { @class = "control-label" })
            @Html.PasswordFor(c => c.PassWord, new { @class = "form-control",@placeholder="密码" })
            </div>
            <input type="submit" value="登陆"  class="btn btn-default" name="BtnSubmit" />
            @Html.ValidationMessage("CredentialError")
        }
        </div>
  </div>
</body>
</html>
